package com.lupan.tomcatStudy.activemq.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 说明：
 *
 * @author lupan
 * @version 2016/5/30 18:04
 */
public class JmsMain {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-context.xml");
        JmsConsumer JmsConsumer = (JmsConsumer) applicationContext.getBean("jmsConsumer");
        JmsConsumer.recive();

        System.out.println("初始化消息消费者");
    }
}
